 function init()
 {
 	var idStr="";
	var len=document.all.checkbox.length;
	for(var index=0;index<len;index++){
		idStr = idStr+document.all['checkbox'][index].value+",";
	}
	var urlStr= "statistics.do";
	var myAjax=new Ajax.Request(urlStr,
	 {
	  method:'post',
	  parameters:{fjids:idStr},
	  onComplete:showResponse
	  });
 }			
			
   function showResponse(originalRequest)
 {
  // 将返回的 XML 放到 textarea 内
  var o = eval(originalRequest.responseText);
  var size = o.length;
  for(var i=0 ;i<size; i++)
  {
   var im = o[i];
   var temO = $(im.imageType);
   var temOr = $(im.imageType+'-r');
   if(temO)
   {
   	temO.src = im.imageUrl;
   }
   if(temOr)
    temOr.href = im.imageUrl;
   
  }
 // $('result').value = originalRequest.responseText;
 }
 
 window.onload=init;